//
//  JFTRequest.h
//  JftMergeSDK
//
//  Created by zhl on 2017/2/10.
//  Copyright © 2017年 HLZ. All rights reserved.
//

#import <Foundation/Foundation.h>
@interface JFTRequest : NSObject<NSURLSessionDelegate>
+ (instancetype)requestManager;
- (void)getDataWithUrl:(NSURL *)url WithParameters:(NSDictionary *)parDictionary Sucessfil:(void (^)(id returnData))Sucessful failure:(void (^)(id failerObjc))failure error:(void(^)(NSError * err))errorBlock;

- (void)postDataWithUrl:(NSURL *)url WithParameters:(NSDictionary*)parDictionary Sucessfil:(void (^)(id))Sucessful failure:(void (^)(id failerObjc))failure error:(void (^)(NSError * err))errorBlock;
- (BOOL)ConnectedToNetwork;
@end
